<template>
  <div class="wrapper">
    <div class="carthead">
      <span>购物车</span></div>
    <div @click="gocart" class="kong"></div>
    <div class="txt">
      <p>你的购物车还是空的</p>
      <p>去<span @click="gocart">逛逛</span>吧</p>
    </div>
    <router-view></router-view>
    <cartFooter></cartFooter>
  </div>
</template>
<script>
  import cartFooter from '../HyyFooter/footer.vue'
  export default {
    methods:{
      gocart(){
        this.$router.push({path:'/FenLei'})
      }
    },
    components:{
      cartFooter
    }
  }
</script>
<style scoped>
  .carthead{
    height: 3rem;
    line-height: 4rem;
    text-align: center;
    background: #e53e42;
    color: #fff;
    font-size: 1rem;
  }
  .kong{
    width: 60%;
    height: 6rem;
    background:#efc5c5;
    margin: 0 auto;
    margin-top: 3rem;
    margin-bottom: 1rem;
  }
  .txt{
    font-size: 0.5rem;
    text-align: center;
  }
  .txt span{
    color: #e53e42;
  }
</style>
